package tw.com.hitevision.whiteboard.android.stateFile;

import android.graphics.Matrix;
import android.graphics.RectF;

import tw.com.hitevision.whiteboard.android.render.StickyNote;

public class StickyNoteStateFile extends BaseStateFile {
    private float[] transformValues;
    private RectF background;
    private RectF rectF;
    private String bitmapName;

    public StickyNoteStateFile(StickyNote stickyNote, RectF background, Matrix transform, RectF rectF, String bitmapName) {
        super(stickyNote);
        this.setClassName(StickyNote.class.getSimpleName());

        this.background = new RectF(background);
        this.transformValues = new float[9];
        transform.getValues(transformValues);
        this.rectF = new RectF(rectF);
        this.bitmapName = bitmapName;
    }

    public void setBackground(RectF background) {
        this.background = background;
    }

    public RectF getBackground() {
        return background;
    }

    public void setRectF(RectF rectF) {
        this.rectF = rectF;
    }

    public RectF getRectF() {
        return rectF;
    }

    public void setBitmapName(String bitmapName) {
        this.bitmapName = bitmapName;
    }

    public String getBitmapName() {
        return bitmapName;
    }

    public void setTransformValues(float[] transformValues) {
        this.transformValues = transformValues;
    }

    public float[] getTransformValues() {
        return transformValues;
    }

//    private ArrayList<Long> followerId;
//    private long oldId;
//
//    public StickyNoteStateFile(StickyNote stickyNote, ArrayList<Long> followerId, long oldId) {
//        super(stickyNote);
//        this.setClassName(StickyNote.class.getSimpleName());
//
//        this.followerId = new ArrayList<>(followerId);
//        this.oldId = oldId;
//    }
//
//
//    public void setFollowerId(ArrayList<Long> followerId) {
//        this.followerId = followerId;
//    }
//
//    public ArrayList<Long> getFollowerId() {
//        return followerId;
//    }
//
//    public void setOldId(long oldId) {
//        this.oldId = oldId;
//    }
//
//    public long getOldId() {
//        return oldId;
//    }
}
